package org.qpcr.community.device.message.property;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 内存数缓存据配置
 *
 * @author yanss
 * @since 2023-04-21
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "cn.tylinks.keeponline.cache")
public class CacheProperties {

	// 最大数量
	private long maximumSize = 100000000;
	// 过期时间（s）
	private long expireAfterWrite = 60;
	// 最大时间差
	private Long betweenAt = 20L;
}
